<?php
namespace app\model;

use support\Model;

class PromotionModel extends Model
{
    protected $table = 'promotions';
    
    protected $fillable = ['name', 'type', 'start_time', 'end_time', 'status', 'description', 'rules', 'created_at', 'updated_at'];
    
    protected $hidden = [''];
    
    protected $casts = array (
  'start_time' => 'datetime',
  'end_time' => 'datetime',
  'rules' => 'array',
  'created_at' => 'datetime',
  'updated_at' => 'datetime',
);
} 